const filecache = require("../middleware/filecache");
const auth = require("../middleware/auth");
module.exports = (app) => {
  const {
    controller,
    router,
    config: { api },
  } = app;
  router.get(`${api.v1}merit/count`, controller.merit.getCount);
  router.put(`${api.v1}merit/save`, controller.merit.saveCount);
  router.put(`${api.v1}merit/donate`, controller.merit.donate);
  router.get(`${api.v1}merit/list`, controller.merit.list);
  router.get(`${api.v1}merit/province`, controller.merit.province);

  router.get(`${api.v1}merit/today_log`, controller.merit.getTodayLog);
  router.get(`${api.v1}merit/today_all_log`, controller.merit.getTodayAllLog);
  router.put(`${api.v1}merit/today_log`, controller.merit.putTodayLog);
  router.get(`${api.v1}merit/total_log_type`, controller.merit.totalLogByType);
  router.get(`${api.v1}merit/donate_log`, controller.merit.getDonateLog);
  router.put(`${api.v1}merit/donate_log`, controller.merit.putDonateLog);
};
